package com.action;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts2.convention.annotation.Action;

import com.opensymphony.xwork2.ActionSupport;

public class DataListAction extends ActionSupport {
	private List<String> list = new ArrayList<String>();
	
	public DataListAction() {
		list.add("this");
		list.add("is");
		list.add("a");
		list.add("test");
		list.add("list");
	}

	public List<String> getList() {
		return list;
	}
	
	@Action("foreach")
	public String execute() {
		return SUCCESS;
	}
}
